/*放弃订单*/
function Establish_abandoned(title,con,btnl,btnr,url) {
    this.title=title;
    this.con=con;
    this.btnl=btnl;
    this.btnr=btnr;
    var el = document.createElement('div');
    el.classList.add("abandoned");
    el.style.display="block";
    el.innerHTML=`<div class="Position"><i class="iconfont icon-guanbi Position_close"></i><div class="aband_warp"><div class="title">`+title+`</div><div class="con">`+con+`</div><div class="btn_warp clear"><a href="`+url+`"><div class="btn">`+btnl+`</div></a><div class="btn b2">`+btnr+`</div></div></div></div>`;
    document.body.appendChild(el)
}
/*退出*/
function Establish_backout(title,con,btnl,btnr,url) {
    this.title=title;
    this.con=con;
    this.btnl=btnl;
    this.btnr=btnr;
    var el = document.createElement('div');
    el.classList.add("back-out");
    el.style.display="block";
    el.innerHTML=`<div class="Position"><i class="iconfont icon-guanbi Position_close"></i><div class="aband_warp"><div class="title">`+title+`</div><div class="con">`+con+`</div><div class="btn_warp clear"><div class="btn"><a href="`+url+`">`+btnl+`</a></div><div class="btn b2">`+btnr+`</div></div></div></div>`;
    document.body.appendChild(el)
}
/*被抢光*/
function Establish_noshop(title,con,btn,url) {
    this.title=title;
    this.con=con;
    this.btnl=btn;
    this.url=url;
    var el = document.createElement('div');
    el.classList.add("norob");
    el.style.display="block";
    el.innerHTML=`<div class="Position"><i class="iconfont icon-guanbi Position_close"></i><div class="aband_warp"><div class="title">`+title+`</div><div class="con">`+con+`</div><a href="`+url+`"><div class="btn">确定</div></a></div></div>`;
    document.body.appendChild(el)
}
/*删除地址*/
function Establish_delete_url(title,con,btnl,btnr,backfun) {
    this.title=title;
    this.con=con;
    this.btnl=btnl;
    this.btnr=btnr;
    var el = document.createElement('div');
    el.classList.add("delete_url");
    el.style.display="block";
    el.innerHTML=`<div class="Position"><i class="iconfont icon-guanbi Position_close"></i><div class="delete_url_warp"><div class="title">`+title+`</div><div class="con">`+con+`</div><div class="btn_warp clear"><div class="btn b1">`+btnl+`</div><div class="btn b2"><a id="dele_address" href="javascript:void(0)">`+btnr+`</a></div></div></div></div>`;
    document.body.appendChild(el)
}
/*退出支付*/
function Establish_outpay(title,con,btnl,btnr,url) {
    this.title=title;
    this.con=con;
    this.btnl=btnl;
    this.btnr=btnr;
    var el = document.createElement('div');
    el.classList.add("out_pay");
    el.style.display="block";
    el.innerHTML=`<div class="Position"><i class="iconfont icon-guanbi Position_close"></i><div class="aband_warp"><div class="title">`+title+`</div><div class="con">`+con+`</div><div class="btn_warp clear"><div class="btn"><a href="`+url+`">`+btnl+`</a></div><div class="btn b2">`+btnr+`</div></div></div></div>`;
    document.body.appendChild(el)
}
/*实名认证*/
function Establish_certification(title,con,btnl,btnr,url) {
    this.title=title;
    this.con=con;
    this.btnl=btnl;
    this.btnr=btnr;
    var el = document.createElement('div');
    el.classList.add("certification");
    el.style.display="block";
    el.innerHTML=`<div class="Position"><i class="iconfont icon-guanbi Position_close"></i><div class="certification_warp"><div class="title">`+title+`</div><div class="con">`+con+`</div><div class="btn_warp clear"><div class="btn b1">`+btnl+`</div><div class="btn b2"><a href="`+url+`">`+btnr+`</a></div></div></div></div>`;
    document.body.appendChild(el)
}
/*余额不足*/
function Establish_nobalance(title,con1,con2,con3,btnl,btnr,url) {
    this.title=title;
    this.con1=con1;
    this.con2=con2;
    this.con6=con3;
    this.btnl=btnl;
    this.btnr=btnr;
    var el = document.createElement('div');
    el.classList.add("certification");
    el.style.display="block";
    el.innerHTML=`<div class="Position"><i class="iconfont icon-guanbi Position_close"></i><div class="certification_warp"><div class="title">`+title+`</div><div class="con">`+con1+`<span>`+con2+`</span>`+con3+`</div><div class="btn_warp clear"><div class="btn b1">`+btnl+`</div><div class="btn b2"><a href="`+url+`">`+btnr+`</a></div></div></div></div>`;
    document.body.appendChild(el)
}
/*分享*/
function Establish_fenxiang(title,con,btn,url) {
    this.title=title;
    this.con=con;
    this.btnl=btn;
    this.url=url;
    var el = document.createElement('div');
    el.classList.add("norob");
    el.style.display="block";
    el.innerHTML=`<div class="Position"><i class="iconfont icon-guanbi Position_close"></i><div class="aband_warp"><div class="title">`+title+`</div><div class="con">`+con+`</div><div class="btn">确定</div></div></div>`;
    document.body.appendChild(el)
}
/*价格显示*/
function Price_display(){
    $(".price-display").each(function(index,domele){
        var that=this;
        var hk;
        if(100000000>$(this).html() && $(this).html()>9999){
            hk=$(that).html()/10000;
            hk= hk.toFixed(2);
            $(that).html(hk+"W");
        }else if($(this).html()>100000000){
            hk=$(that).html()/100000000;
            hk= hk.toFixed(2);
            $(that).html(hk+"E");
        }
    })
}
Price_display();
